package com.itheima.tanhuauser.thread;

import com.itheima.vo.UserVo;

public class TokenThread {

    //泛型指的是threadlocal这个容器 里面存储数据的类型
    public static ThreadLocal<String> threadLocal=new ThreadLocal<>();

    public static String get(){
        return threadLocal.get();
    }

    public static void set(String id){
        threadLocal.set(id);
    }

    public static void remove(){
        threadLocal.remove();
    }
}
